<html lang="en">
<head>
 <meta charset="UTF-8">
 <meta name="viewport" content="width=device-width, initial-scale=1.0">
 <meta http-equiv="X-UA-Compatible" content="ie=edge">
 <link rel="stylesheet" href="../public/css/node.css">
 <link rel="stylesheet" href="../public/css/bootstrap.min.css">
 <!--站点图标-->
 <link rel="shortcut icon" href="../public/img/index/logo/logo.ico" type="image/x-icon">
 <title>Z-anime 后台管理</title>
</head>
<body>
    <ul id="nav" class="col-md-1 nav nav-pills nav-stacked">
        <li class="navItem txContainer col-md-12 col-xs-3 ">
          <div class="kb visible-lg visible-md"></div>
          <img src="../public/img/index/logo/logo.png" alt="" class="visible-lg-inline visible-md-inline">
          <div>后台管理</div>
        </li>
        {{each menu}}
        <li class="navItem col-md-12 col-xs-3"  data-area="{{$index + 1}}">{{ $value }}</li>
        {{/each}}
      </ul>

  <ul id="allTable" class="col-md-11">
    <!--番剧管理-->
    {{if area==1}}
    <li id="animesTable" class="allTable_item">
      <div class="tableTitle">番剧后台管理 ({{length}})</div>
      <div style="position: relative;">
        <ul class="pagination">
          {{ each page }}
            <a href="/node?area={{area}}&s={{s}}&p={{ $index + 1 }}&key={{key}}">
              <li class="{{ p == $index + 1 ? 'active' :''}}">{{ $index + 1 }}</li>
            </a>
          {{ /each }}
        </ul>
        <div style="position: relative;">
          <input type="search" class="form-control searchInput"  id="keyInput" placeholder="搜索关键词" value="{{ key }}">
          <span class="glyphicon glyphicon-search searchBtn"></span>
        </div>
        <div class="searchGroupC">
           <div class="titleText">∨</div>
           <div class="searchGroup" id="animeSearchSort">    
             <div class="select show"></div>
             <div class="menuItem hide" data-sort="0">默认排序</div>
             <div class="menuItem" data-sort="1">热度升序</div>
             <div class="menuItem" data-sort="2">热度降序</div>
             <div class="menuItem" data-sort="3">时间升序</div>
             <div class="menuItem" data-sort="4">时间降序</div>
           </div>
        </div>
      </div>
      
      <div class="table-responsive">
          <table class="table table-striped">
            <thead>
              <tr>
             <th>#名称</th>
             <th>封面</th>
             <th>简介</th>
             <th>地区</th>
             <th>出版时间</th>
             <th>标签</th>
             <th>状态</th>
             <th>热度</th>
             <th>更新时间</th>
             <th>云盘</th>
             <th>集数</th>
             <th>管理集</th>
             <th class="add" id="addAnime">添加</th>           
            </tr>
            </thead>
          <tbody>
           {{ each animes }}
           <tr class="tbody">
             <td class="title"><span>{{ $index + 4*p - 3 }}</span>{{ $value.title }}</td>
             <td>
                <a href="{{ $value.imgSrc_F }}" target="_blank">
                  <div class="fm">
                      <img src="{{ $value.imgSrc_F }}"/>
                  </div>
                </a>  
             </td>
             <td>
              <div class="content ">
                <div>{{ $value.content }}</div>
              </div>
              <div class="moreButton  ">展开</div>
              <div class="lessButton hide ">收起</div>
             </td>
             <td>{{ $value.area }}</td>
             <td>{{ $value.year }}/{{ $value.month }}/{{ $value.day }}</td>
             <td>
               {{ each $value.tags }}
                <span class="tag">{{ $value }}</span>
               {{/each}}
             </td>
             <td>{{ $value.update == 0 ? "已完结" : "连载中"}}</td>
             <td>{{ $value.zValue }}</td>
             <td>{{ $value.updateDate }}</td>
             <td><a href="{{ $value.panUrl }}" target="_blank">链接</a></td>
             <td>{{ $value.episodes.length }}</td>
             <td><a href="/node/episodes?area=1&_id={{ $value._id }}">查看</a></td>
             <td>
               <a href="/node/editAnime?area=1&_id={{ $value._id }}">编辑</a>
               <a href="javascript:;" class="deleteAnime" data-id="{{ $value._id }}" data-title="{{$value.title}}">删除</a>
             </td>
           </tr>
           {{ /each }}
          </tbody>
         </table>

         <div class="episodeForm hide deleteNotice" id="deleteNotice">
             <h3 style="line-height:40px"></h3>
             <span class="closeAdd">x</span>
             <input value="" class="hide" type="text" >
             <button class="btn btn-danger delete">删除</button>
             <button class="btn btn-default cancel">取消</button>    
         </div>

         <h3 class="noData" {{ animes.length !=0 ? 'hidden' : null }}>查询结果，暂无数据！！！</h3>
        </div>
        <input type="hidden" id="refreshed" value="no"> 
      </li>
    {{/if}}
    <!--游戏管理-->
    {{if area==2}}
      <li id="gamesTable" class="allTable_item">
        <div class="tableTitle">游戏后台管理 ({{length}})</div>
        <div style="position: relative;">
          <ul class="pagination">
            {{ each page }}
              <a href="/node?area={{area}}&s={{s}}&p={{ $index + 1 }}&key={{key}}">
                <li class="{{ p == $index + 1 ? 'active' :''}}">{{ $index + 1 }}</li>
              </a>
            {{ /each }}
          </ul>
          <div style="position: relative;">
            <input type="search" class="form-control searchInput"  id="keyInput" placeholder="搜索关键词" value="{{ key }}">
            <span class="glyphicon glyphicon-search searchBtn"></span>
          </div>
          <div class="searchGroupC">
             <div class="titleText">∨</div>
             <div class="searchGroup" id="animeSearchSort">    
               <div class="select show"></div>
               <div class="menuItem hide" data-sort="0">默认排序</div>
               <div class="menuItem" data-sort="1">评分升序</div>
               <div class="menuItem" data-sort="2">评分降序</div>
               <div class="menuItem" data-sort="3">时间升序</div>
               <div class="menuItem" data-sort="4">时间降序</div>
             </div>
          </div>
        </div>
        
        <div class="table-responsive">
            <table class="table table-striped">
              <thead>
                <tr>
               <th>#中英名称</th>
               <th>封面</th>
               <th>简介</th>
               <th>类型</th>
               <th>产地</th>
               <th>状态</th>
               <th>开发商</th>
               <th>运营商</th>
               <th>平台</th>
               <th>出版时间</th>
               <th>官方网址</th>
               <th>评分</th>
               <th class="add" id="addGame">添加</th>           
              </tr>
              </thead>
            <tbody>
             {{ each games }}
             <tr class="tbody">
               <td class="title"><span>{{ $index + 4*p - 3 }}</span>{{ $value.name }} <b>{{ $value.eName }}</b></td>
               <td>
                  <a href="{{ $value.imgUrl }}" target="_blank">
                    <div class="fm">
                        <img src="{{ $value.imgUrl }}"/>
                    </div>
                  </a>  
               </td>
               <td>
                <div class="content ">
                  <div>{{ $value.content }}</div>
                </div>
                <div class="moreButton  ">展开</div>
                <div class="lessButton hide ">收起</div>
               </td>
               <td><div class="tag fz11">{{ $value.gameType }}</div></td>
               <td>{{$value.area}}</td>
               <td>{{$value.state}}</td>
               <td>{{ $value.maker }}</td> 
               <td>{{ $value.publisher }}</td>    
               <td>{{ $value.roof }}</td>                 
               <td>{{ $value.year }}/{{ $value.month }}/{{ $value.day }}</td>
               <td><a href="{{ $value.webUrl }}" target="_blank">官网</a></td>
               <td class="red">{{ $value.score }}</td>
               <td>
                 <a href="/node/editGame?area=2&_id={{ $value._id }}">编辑</a>
                 <a href="javascript:;" class="deleteGame" data-id="{{ $value._id }}" data-title="{{$value.name}}">删除</a>
               </td>
             </tr>
             {{ /each }}
            </tbody>
           </table>
  
           <div class="episodeForm hide deleteNotice" id="deleteNotice">
               <h3 style="line-height:40px"></h3>
               <span class="closeAdd">x</span>
               <input value="" class="hide" type="text" >
               <button class="btn btn-danger delete">删除</button>
               <button class="btn btn-default cancel">取消</button>    
           </div>
  
           <h3 class="noData" {{ games.length !=0 ? 'hidden' : null }}>查询结果，暂无数据！！！</h3>
          </div>
          <input type="hidden" id="refreshed" value="no"> 
        </li>
    {{/if}}
    <!--音乐管理-->
    {{if area==3}}
    <li id="musicTable" class="allTable_item">
        <div class="tableTitle">音乐后台管理 ({{length}})</div>
        <div style="position: relative;">
          <ul class="pagination">
            {{ each page }}
              <a href="/node?area={{area}}&s={{s}}&p={{ $index + 1 }}&key={{key}}">
                <li class="{{ p == $index + 1 ? 'active' :''}}">{{ $index + 1 }}</li>
              </a>
            {{ /each }}
          </ul>
          <div style="position: relative;">
            <input type="search" class="form-control searchInput"  id="keyInput" placeholder="搜索关键词" value="{{ key }}">
            <span class="glyphicon glyphicon-search searchBtn"></span>
          </div>
          <div class="searchGroupC">
             <div class="titleText">∨</div>
             <div class="searchGroup" id="animeSearchSort">    
               <div class="select show"></div>
               <div class="menuItem hide" data-sort="0">默认排序</div>
               <div class="menuItem" data-sort="1">热度升序</div>
               <div class="menuItem" data-sort="2">热度降序</div>
               <div class="menuItem" data-sort="3">发行升序</div>
               <div class="menuItem" data-sort="4">发行降序</div>
               <div class="menuItem" data-sort="5">时长升序</div>
               <div class="menuItem" data-sort="6">时长降序</div>
             </div>
          </div>
        </div>
        
        <div class="table-responsive">
            <table class="table table-striped ">
              <thead>
                <tr>
               <th>#歌曲名称</th>
               <th>播放</th>
               <th>时长</th>
               <th>专辑</th>
               <th>歌手</th>
               <th>语言</th>
               <th>发行日期</th>
               <th>热度</th>           
               <th class="add" id="showAddMusic">添加</th>         
              </tr>
              </thead>
            <tbody>
             {{ each music }}
             <tr class="tbody">
               <td class="title"><span>{{ $index + 4*p - 3 }}</span>{{ $value.title }}</td>
               <td>
                <div class="fm tx" data-index="{{$index}}" data-all="{{$value}}">
                    <img src="{{ $value.imgSrc }}"/>
                    <div class="playerCotainer">
                      <div class="flex">
                        <span class="glyphicon glyphicon-play player"></span>
                      </div>
                    </div>
                </div>
               </td>
               <td>
                <div class="content auto">
                  <div>{{ $value.time||'00:00' }}</div>
                </div>
               </td>
               <td>{{ $value.album }}</td>
               <td>{{ $value.singer }}</td>
               <td>{{$value.area}}</td>               
               <td>{{ $value.year }}/{{ $value.month }}/{{ $value.day }}</td>
               <td class="red">{{ $value.zValue }}</td>
               <td>
                 <a href="javascript:;" data-all="{{$value}}" class="editMusic">编辑</a>
                 <a href="javascript:;" class="deleteMusic" data-id="{{ $value._id }}" data-title="{{$value.title}}">删除</a>
               </td>
             </tr>
             {{ /each }}
            </tbody>
           </table>
  
           <div class="episodeForm hide deleteNotice" id="deleteNotice">
               <h3 style="line-height:40px"></h3>
               <span class="closeAdd">x</span>
               <input value="" class="hide" type="text" >
               <button class="btn btn-danger delete">删除</button>
               <button class="btn btn-default cancel">取消</button>    
           </div>
  
           <h3 class="noData" {{ music.length !=0 ? 'hidden' : null }}>查询结果，暂无数据！！！</h3>
          </div>
          <input type="hidden" id="refreshed" value="no"> 
        </li>


        <!--播放器-->
        <audio src="" id="player_iframe" controls="controls" autoplay="autoplay" class="hide" loop="loop"></audio>
        <div id="musicArea">
          <div class="imgBlackBgC">
            <div class="imgBlackBg"></div>
          </div>
          <div class="imgDiv">
            <img src="../public/img/index/music/upload/common/CtQuO-pzh6BNGWFbfmeH_A==_2509085534608452.jpg" alt="">
            <div class="o"></div>
          </div>
          <div id="rightContent">
            <div class="musicTitle">歌曲名 - 歌手</div>
            <div class="album" style="margin-top: 5px;">专辑</div>    
            <div class="musicPlayer">
              <span class="glyphicon glyphicon-play playerIcon"></span>
              <div class="progress" isMove=false>
                <div class="progressC">
                  <div class="progress_bar"></div>
                </div>
                <span class="musicTime">
                  <span class="nowTime">00:00</span>
                  /
                  <span class="allTime">00:00</span>
                </span>
              </div>     
            </div>
            <div class="musicLyc">
              <div class="lycCotainer">
                  <div class="lycList">
                      
                  </div>
              </div>
            </div>
            <span class="slideMove glyphicon glyphicon-chevron-down moveDown"></span>
            <span class="musicVoice">
              <div style="position: relative;">
                <div class="musicVoiceArea" style="display:none">
                   <div class="voiceProgress" style="display:none">
                    <div class="voiceProgressC">
                        <div class="voiceProgressBar"></div>
                    </div>
                   </div>
                </div>
                <span class="musicVoiceIcon glyphicon glyphicon-volume-up" data-volume="1"></span>
              </div>
            </span>
          </div>  
        </div>
        <div class="moveUp" style="display:none">
           <span></span>
           <div class="imgBlackBgC">
            <div class="imgBlackBg"></div>
           </div> 
        </div>
    {{/if}}
    <!--资讯管理-->
    {{if area==4}}
    <li id="newsTable" class="allTable_item">
      <div class="tableTitle">资讯后台管理 ({{length}})</div>
      <div style="position: relative;">
        <ul class="pagination">
          {{ each page }}
            <a href="/node?area={{area}}&s={{s}}&p={{ $index + 1 }}&key={{key}}">
              <li class="{{ p == $index + 1 ? 'active' :''}}">{{ $index + 1 }}</li>
            </a>
          {{ /each }}
        </ul>
        <div style="position: relative;">
          <input type="search" class="form-control searchInput"  id="keyInput" placeholder="搜索关键词" value="{{ key }}">
          <span class="glyphicon glyphicon-search searchBtn"></span>
        </div>
        <div class="searchGroupC">
           <div class="titleText">∨</div>
           <div class="searchGroup" id="animeSearchSort">    
             <div class="select show"></div>
             <div class="menuItem hide" data-sort="0">默认排序</div>
             <div class="menuItem" data-sort="1">浏览升序</div>
             <div class="menuItem" data-sort="2">浏览降序</div>
             <div class="menuItem" data-sort="3">时间升序</div>
             <div class="menuItem" data-sort="4">时间降序</div>
           </div>
        </div>
      </div>
      
      <div class="table-responsive">
          <table class="table table-striped">
            <thead>
              <tr>
             <th>#</th>
             <th>分区</th>
             <th>封面图片</th>
             <th>标题名称</th>
             <th>资讯内容</th>
             <th>发布人</th>
             <th>发布时间</th>
             <th>浏览次数</th>
             <th class="add" id="addNew">添加</th>           
            </tr>
            </thead>
          <tbody>
           {{ each news }}
           <tr class="tbody">
             <td class="title"><span>{{ $index + 4*p - 3 }}</span></td>
             <td><div class="tag fz11">{{ $value.area }}</div></td>
             <td>
                <a href="{{ $value.imgSrc }}" target="_blank">
                  <div class="fm">
                      <img src="{{ $value.imgSrc }}"/>
                  </div>
                </a>  
             </td>
             <td>{{$value.title}}</td>
             <td style="width:35%"><div class="contentText">{{$value.contentText}}</div></td>
             <td>{{$value.writer}}</td>
             <td>{{$value.time}}</td>
             <td class="red">{{ $value.readNum }}</td>
             <td>
               <a href="/node/editNew?area=4&_id={{ $value._id }}">详细信息</a>
               <a href="javascript:;" class="deleteNew" data-id="{{ $value._id }}" data-title="{{$value.title}}">删除</a>
             </td>
           </tr>
           {{ /each }}
          </tbody>
         </table>

         <div class="episodeForm hide deleteNotice" id="deleteNotice">
             <h3 style="line-height:40px"></h3>
             <span class="closeAdd">x</span>
             <input value="" class="hide" type="text" >
             <button class="btn btn-danger delete">删除</button>
             <button class="btn btn-default cancel">取消</button>    
         </div>

         <h3 class="noData" {{ news.length !=0 ? 'hidden' : null }}>查询结果，暂无数据！！！</h3>
        </div>
        <input type="hidden" id="refreshed" value="no"> 
      </li> 
    {{/if}}

    <!--用户管理-->
    {{if area==5}}
    <li id="usersTable" class="allTable_item">
      <div class="tableTitle">用户后台管理 ({{length}})</div>
      <div style="position: relative;">
        <ul class="pagination">
          {{ each page }}
            <a href="/node?area={{area}}&s={{s}}&p={{ $index + 1 }}&key={{key}}">
              <li class="{{ p == $index + 1 ? 'active' :''}}">{{ $index + 1 }}</li>
            </a>
          {{ /each }}
        </ul>
        <div style="position: relative;">
          <input type="search" class="form-control searchInput"  id="keyInput" placeholder="搜索关键词" value="{{ key }}">
          <span class="glyphicon glyphicon-search searchBtn"></span>
        </div>
        <div class="searchGroupC">
          <div class="titleText">∨</div>
          <div class="searchGroup" id="animeSearchSort">    
            <div class="select show"></div>
            <div class="menuItem hide" data-sort="0">默认排序</div>
            <div class="menuItem" data-sort="1">创建升序</div>
            <div class="menuItem" data-sort="2">创建降序</div>
            <div class="menuItem" data-sort="3">经验升序</div>
            <div class="menuItem" data-sort="4">经验降序</div>
          </div>
        </div>

        <div class="searchGroupC">
            <div class="titleText titleText2">∨</div>
            <div class="searchGroup searchGroup2" id="ueserSort">    
              <div class="select show"></div>
              <div class="menuItem hide" data-type="0">所有用户</div>
              <div class="menuItem" data-type="1">普通用户</div>
              <div class="menuItem" data-type="2">管理员</div>
              <div class="menuItem" data-type="3">站长</div>
            </div>
          </div>

      </div>
      
      <div class="table-responsive">
          <table class="table table-striped">
            <thead>
              <tr>
            <th>#</th>
            <th>头像</th>
            <th>UID</th>
            <th>昵称</th>
            <th>状态</th>
            <th>用户类型</th>
            <th>手机号</th>
            <th>密码</th>
            <th>注册时间</th>
            <th>登录时间</th>
            <th>IP地址（外网 / 内网）</th>
            <th>地理位置</th>
            <th>经验</th>
            <th></th>           
            </tr>
            </thead>
          <tbody>
          {{ each users }}
          <tr class="tbody">
            <td class="title" style="width: auto !important;">
              <span>{{ $index + 1 + pNum*(p-1) }}</span>
            </td>
            <td>
              <a href="{{ $value.imgSrc }}" target="_blank">
                <div class="fm fm11">
                    <img src="{{ $value.imgSrc }}"/>
                </div>
              </a>
            </td>
            <td>{{$value.uid}}</td>
            <td>{{$value.name}}</td>
            <td>{{if $value.online == '离线'}}<span class="ccc">{{$value.online}}</span>{{/if}}{{if $value.online == '在线'}}<span class="green">{{$value.online}}</span>{{/if}}</td>
            <td>
                <span class="cf">{{$value.userType == 0 ? '普通用户':''}}</span>
                <span class="pur">{{$value.userType == 1 ? '管理员':''}}</span>
                <span class="red">{{$value.userType == 10000 ? '站长':''}}</span>
              </td>
            <td>{{$value.username}}</td>
            <td class="password">
              <span class="hidePwd">{{each $value.password}}*{{/each}}</span>
              <span class="showPwd hide">{{$value.password}}</span>
              <a></a>
            </td>
            <td>{{$value.time}}</td>
            <td>{{$value.lastLogin}}</td>
            <td>{{$value.clientIp}}<br>{{$value.innerIp}}</td>
            <td>{{$value.address}}</td>
            <td class="red">{{ $value.exp }}</td>
            <td style="width:120px">
              <a href="javascript:;"style="float: left;" class="showP">查看密码</a>
              <a href="javascript:;" style="float: right;" class="deleteuser" data-id="{{ $value._id }}" data-title="{{$value.name}}">删除</a>
            </td>
          </tr>
          {{ /each }}
          </tbody>
        </table>

        <div class="episodeForm hide deleteNotice" id="deleteNotice">
            <h3 style="line-height:40px"></h3>
            <span class="closeAdd">x</span>
            <input value="" class="hide" type="text" >
            <button class="btn btn-danger delete">删除</button>
            <button class="btn btn-default cancel">取消</button>    
        </div>

        <h3 class="noData" {{ users.length !=0 ? 'hidden' : null }}>查询结果，暂无数据！！！</h3>
        </div>
        <input type="hidden" id="refreshed" value="no"> 
      </li> 
    {{/if}}

    </ul>



   <!--添加音乐界面-->
  <form class="episodeForm hide" action="/node/addMusic" target="nm_iframe" method="post" id="addMusicForm">
    <div class="tableTitle"></div>
    <span class="closeAdd">x</span>
    <div class="form-group">
      <div class="musicLeft">
        <div class="imgC">
            <div class="imgSrc">
                <img src="../public/img/index/other/noImg.jpg" alt="">
                <div class="time">
                  时长：
                  <input id="time" type="text" name="time" readonly value="00:00">
                </div>
                
              </div>
              <span class="noticeTitle">封面</span>
              <input type="text" class="hide" name="imgSrc" id="imgSrc" value="../public/img/index/other/noImg.jpg">
          </div>    
      </div> 
      <div class="musicRight">
          <div class="form-group">
              <label for="animeId">歌曲地址：</label>
              <input id="musicUrl" type="text" name="musicUrl" class="form-control" placeholder="歌曲地址" value="" readonly> 
          </div>
          <div class="form-group">
              <label for="animeId">歌词地址：</label>
              <input id="LyricsUrl" type="text" name="LyricsUrl" class="form-control" placeholder="歌词地址" value="" readonly> 
          </div>
          <div class="form-group">
              <label>音乐名称：</label>
              <input id="title" type="text" name="title" class="form-control" placeholder="音乐名称" value=""> 
          </div>
          
      </div>
  </div>
  
  
    
  <div class="form-group">
      <label>歌手名称：</label>
      <input id="singer" type="text" name="singer" class="form-control" placeholder="歌手名称" value=""> 
  </div>
    <div class="form-group">
        <label>专辑名称：</label>
        <input id="album" type="text" name="album" class="form-control" placeholder="专辑名称" value=""> 
    </div>
    <div class="form-group">
        <label for="animeArea">语言：</label>
        <select class="form-control" name="area" data-value="中文" id="areaSelect">
          <option value="中文" >中文</option>
          <option value="日语" >日语</option>
          <option value="英语" >英语</option>
        </select>
    </div>
    <div class="form-group">
        <label for="animeDate">发行日期：</label>
        <input type="number" name="year" class="form-control dateInput" id="year" placeholder="年" value="2019"> 年  
        <input type="number" name="month" class="form-control dateInput" id="month" placeholder="月" value="1"> 月
        <input type="number" name="day" class="form-control dateInput" id="day" placeholder="日" value="1"> 日
    </div>
    <div class="form-group">
        <label for="animeId">热度值：</label>
        <input id="zValue" type="number" name="zValue" class="form-control" placeholder="热度值" value=""> 
    </div>
    
    <button style="margin-bottom:20px" type="submit" class="btn btn-default" id="saveMusic">保存</button>      
  </form> 
  <!--上传音乐相关文件-->
  <form action="/node/uploadMusic" method="post" enctype="multipart/form-data" class="musicUploadForm hide"  target="nm_iframe">
    <input id="uploadMusic" type="file" accept="audio/*,image/*,text/plain" name="file">
    <input type="submit" class="uploadMusicBtn">
  </form>
  <div class="progressM hide">
      <div class="barM"></div >
      <div class="percentM">0%</div >
      <div class="speedM">0.0 MB / S</div >
  </div>
  <div id="statusM"></div>


  <!--保存不跳转页面-->
  <iframe id="id_iframe" name="nm_iframe" style="display:none;"></iframe> 
  <div id="blackBg" class="hide"></div>
 <script src="../public/js/jquery-1.12.4.min.js"></script>
 <script>
   // 后退返回刷新当前页面
    var  json={time:(new Date()).getTime()};
    var url;
    
    if(window.location.href.indexOf('?') != -1){
      url = window.location.href+"&time="+(new Date()).getTime();
    }else{
      url = window.location.href+"?area=1&s=0&time="+(new Date()).getTime()
    }
    window.history.replaceState(json,"",url);
     window.onpopstate=function(){
        // 获得存储在该历史记录点的json对象
        var  json=window.history.state;// 获得的json为null时则无需刷新
        if(json){
        window.location.reload();
        }
};
 </script>
 <script src="../public/js/vue.min.js"></script>
 <script src="../public/js/vue-resource.min.js"></script>
 <script src="../public/js/common.js"></script>
 <!--<script src="https://cdn.bootcss.com/socket.io/2.2.0/socket.io.js"></script>-->
 <script src="../public/js/jquery.form.js"></script>
 <script src="../public/js/lyric.js"></script>
 <script src="../public/js/node/index.js"></script>
</body>
</html>